package nciae.db.pojo.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import nciae.db.pojo.entity.Homework;
import nciae.db.pojo.entity.Student;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.File;
import java.sql.Timestamp;
import java.util.List;

@Data
public class HomeworkDetailVo {
    @TableId(type =  IdType.AUTO)
    private Integer id;
    private Integer homeworkId;
    private Integer studentId;
    private String content; //作业的内容
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp submitDate;
    private int isRead;
    private int score;
    private String comment;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp readDate;
    private Integer expertId;
    //对应的作业内容
    private Homework homework;
    //作业对应的学生姓名
    private Student student;

    //作业提交的文件信息
    private List<String> fileNames;

    //作业提交的图片信息
    private List<String> imageNames;

}
